# coding:utf-8
"""
Author: 11203
Date:  15:46
Name: limiter_utils
flask-limiter 限流器工具类
"""
from flask_limiter import Limiter
from flask_limiter.util import get_remote_address

# 创建限流器
# 暂时利用客户端ip来限流
limiter = Limiter(key_func=get_remote_address)